home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / dflat_r_.arc / CONFIG.H < prev    next >
Text File  |  1991-10-02  |  1KB  |  40 lines

  1. /* ---------------- config.h -------------- */
  2.  
  3. #ifndef CONFIG_H
  4. #define CONFIG_H
  5.  
  6. enum colortypes {
  7.     STD_COLOR,
  8.     SELECT_COLOR,
  9.     FRAME_COLOR,
  10.     HILITE_COLOR
  11. };
  12.  
  13. enum grounds { FG, BG };
  14.  
  15. /* ----------- configuration parameters ----------- */
  16. typedef struct config {
  17.     char version[sizeof VERSION];
  18.     char mono;         /* 0=color, 1=mono, 2=reverse mono    */
  19.     int InsertMode;    /* Editor insert mode                 */
  20.     int Tabs;          /* Editor tab stops                   */
  21.     int WordWrap;      /* True to word wrap editor           */
  22.     int Border;        /* True for application window border */
  23.     int Title;         /* True for application window title  */
  24.     int StatusBar;     /* True for appl'n window status bar  */
  25.     int Texture;       /* True for textured appl window      */
  26.     int ScreenLines;   /* Number of screen lines (25/43/50)  */
  27.     char clr[CLASSCOUNT] [4] [2]; /* Colors                  */
  28. } CONFIG;
  29.  
  30. extern CONFIG cfg;
  31. extern unsigned char color[CLASSCOUNT] [4] [2];
  32. extern unsigned char bw[CLASSCOUNT] [4] [2];
  33. extern unsigned char reverse[CLASSCOUNT] [4] [2];
  34.  
  35. int LoadConfig(void);
  36. void SaveConfig(void);
  37.  
  38. #endif
  39.  
  40.